package com.ruoyix.novel.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 分卷设计业务对象 novel_volume
 *
 * @author ruoyi
 * @date 2025-06-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NovelVolumeBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联的小说项目ID
     */
    @NotNull(message = "关联的小说项目ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 卷名
     */
    @NotBlank(message = "卷名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 卷的描述
     */
    @NotBlank(message = "卷的描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 排序顺序
     */
    @NotNull(message = "排序顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderIndex;

    /**
     * 备注
     */
    private String remark;



}
